package com.hkd.user_service.api.fallback;

import com.hkd.common.api.BaseFallBack;
import com.hkd.common.api.BaseFallbackFactory;
import com.hkd.user_service.api.UserAddressService;
import com.hkd.user_service.api.UserBalanceLogService;
import com.hkd.user_service.api.entity.UserBalanceLog;
import org.springframework.stereotype.Component;

/**
 * @author HKD
 * @date 2022/9/17 18:21
 */
@Component
public class UserBalanceLogServiceImplFallback extends BaseFallbackFactory<UserBalanceLogService> {
    @Override
    public UserBalanceLogService create(Throwable throwable) {
        FeignFallback fallback = new FeignFallback();
        fallback.setCause(throwable);
        return fallback;
    }
    public class FeignFallback extends BaseFallBack implements UserBalanceLogService {

    }
}
